-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retry pruning when skaffold could not prune local images due running containers #3643
Conversation
…o other running containers
Codecov Report
|
pkg/skaffold/docker/image.go
Outdated
@@ -39,6 +41,11 @@ import ( | |||
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/util" | |||
) | |||
|
|||
const ( | |||
retrials = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
retrials = 5 | |
retries = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits + please do a goimports, Travis is failing.
This is not a perfect solution but should help with some basic stuff.
For those workloads that have long terminationGracePeriodSeconds
and/or don't accept SIGTERM from Kubernetes, this will still be an issue.
This issue is another motivation for implementing the --terminator
in skaffold dev
that would overwrite in dev mode the terminationGracePeriodSeconds
to 0
.
Co-Authored-By: Balint Pato <[email protected]>
Thanks. Yes
Agreed! |
Fixes #3624